<?php
/**
 * Created by PhpStorm.
 * User: zyark
 * Date: 2017/9/20
 * Time: 10:21
 */

namespace Home\Controller;


class NoticeController extends BaseController
{
    public function detail(){
        $notice_id = I('notice_id');
        $notice = D('Notice')->where(array('id'=>$notice_id))->find();
        $notice['content'] = html_entity_decode($notice['content']);
        $this->assign('notice',$notice);
        $this->display();
    }
}